import http from "@/utils/http.js"

const url = {
    // 查询
    getExportFileList: "/exportFile/exportFileList",
    // 查询
    exportFileDownload: "/exportFile/download/",
    // 查询
    exportFileDownloadAll: "/exportFile/downloadAll",
    // 查询
    generateFile: "/exportFile/generateFile",
}

export default {
    url: url,
    // 查询
    generateFile(params) {
        return http.post(url.generateFile, params)
    },
    // 查询
    getExportFileList(params) {
        return http.post(url.getExportFileList, params)
    },
    // 查询
    exportFileDownload(params) {
        return http.export(url.exportFileDownload + params.id, params, 'post')
    },
    // 查询
    exportFileDownloadAll(params) {
        return http.export(url.exportFileDownloadAll, params, 'post')
    },
}